#include "Cunchutijiegou.h"
using namespace std;
//存储层常量
#ifndef SERVER_PORT
#define SERVER_PORT
const int PORT = 8000;
#endif

//listen的隊列常量
#ifndef LISTEN_QUEUE
#define LISTEN_QUEUE
const int QUEUE = 40;
#endif

//Cunchuti_jiegou類名定義為宏
#ifndef CUNCHUTI_JIEGOU
#define CUNCHUTI_JIEGOU Cunchuti_jiegou
typedef vector<Cunchuti> CUNCHUTI_TABLE_JIEGOU;
typedef vector<long> CUNCHUTI_BITVIEW_JIEGOU;
#endif

//cunchuti_table存儲體表定義為宏
#ifndef CUNCHUTI_TABLE
#define CUNCHUTI_TABLE (CUNCHUTI_JIEGOU::cunchuti_table)
#endif

//cunchuti_bitview位示圖表定義為宏
#ifndef CUNCHUTI_BITVIEW
#define CUNCHUTI_BITVIEW (CUNCHUTI_JIEGOU::cunchuti_bitview)
#endif

#ifndef BITVIEW_YU
#define BITVIEW_YU (CUNCHUTI_JIEGOU::bit_view_yu)
#endif

#ifndef CUNCHUTI_SIZE
#define CUNCHUTI_SIZE (CUNCHUTI_JIEGOU::cunchuti_size)
#endif

#ifndef CUNCHUTI_USEDSIZE
#define CUNCHUTI_USEDSIZE (CUNCHUTI_JIEGOU::cunchuti_usedsize)
#endif

#ifndef MUTEX_CU
#define MUTEX_CU (Kongzhi::mutex_cu)
#endif

#ifndef MUTEX_BITVIEW
#define MUTEX_BITVIEW (Kongzhi::mutex_bitview)
#endif

#ifndef MUTEX_BITYU
#define MUTEX_BITYU (Kongzhi::mutex_bityu)
#endif

#ifndef TMG
#define TMG "vesselfilesystem/tmg.log"
#endif

#ifndef CUNCHUTI_DIR
#define CUNCHUTI_DIR "vesselfilesystem"
#endif

#ifndef CUNCHUTI_DEFAULT
#define CUNCHUTI_DEFAULT "vesselfilesystem/cunchuti_default"
#endif

#ifndef CUNCHUTI_TABLE_FILE
#define CUNCHUTI_TABLE_FILE "vesselfilesystem/cunchuti_table.table"
#endif

#ifndef CUNCHUTI_BITVIEW_FILE
#define CUNCHUTI_BITVIEW_FILE "vesselfilesystem/cunchuti_bitview.table"
#endif

#ifndef CUNCHUTI_BITVIEW_YU
#define CUNCHUTI_BITVIEW_YU "vesselfilesystem/cunchuti_bitview_yu.table"
#endif

#ifndef CUNCHUTI_SIZE_USED
#define CUNCHUTI_SIZE_USED "vesselfilesystem/cunchuti_USED_SIZE"
#endif

#ifndef CUNCHUTI_SIZE_ALL
#define CUNCHUTI_SIZE_ALL "vesselfilesystem/cunchuti_ALL_SIZE"
#endif
//不同大小的文件存儲單位不同，1M及以下按每塊4k存儲，(1M,100M]按每塊32k存儲，(100M,1G]按每塊256k存儲，大於1G按每塊1m存儲
//常量表示該大小存儲塊在系統中第一次出現的地址，為-1表示系統已無該大小的存儲塊

